/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DigimonAdventure.Database;

/**
 *
 * @author Benz Louis
 */

// Speed (delay)
// delay = delay ATB bertambah 1 (dalam milisecond), ATB full waktu 100
public enum Speed {
    VerySlow(100,2),
    Slow(70,3),
    Standard(50,5),
    Fast(35,8),
    VeryFast(25,12);

    private int delay;
    private int combo;

    private Speed(int delay, int combo) {
        this.delay = delay;
        this.combo = combo;
    }
    public static Speed getSpd(int x){
        if (x < 100){return VerySlow;}
        else if (x < 200){return Slow;}
        else if (x < 500){return Standard;}
        else if (x < 1000){return Fast;}
        else {return VeryFast;}
    }
    public int getDelay(){
        return delay;
    }
    public int getCombo(){
        return combo;
    }
}